package com.jianganming.mediator.demo;
//租客
public class Tenant extends Person{
    public Tenant(String name, MediatorCompany mediatorCompany) {
        super(name, mediatorCompany);
    }
    //联络方法
    public void connection(String message){
        mediatorCompany.connection(this,message);
    }
    //获取消息
    public void getMessage(String message){
        System.out.println("租客"+name+"获取到到消息:"+message);
    }
}
